<!--抽屉导航-->
<div class="mdui-drawer" id="main_drawer">
    <div class="mdui-list">
        <div>
            <div id="drawer_index" class="mdui-list-item mdui-ripple">
                <i class="mdui-list-item-icon mdui-icon material-icons">&#xe88a;</i>
                <div class="mdui-list-item-content">首页</div>
            </div>
            <div id="drawer_center" class="mdui-list-item mdui-ripple">
                <i class="mdui-list-item-icon mdui-icon material-icons">&#xe853;</i>
                <div class="mdui-list-item-content"><?php if (isset($_SESSION['uid'])) echo '个人中心'; else echo '登录'; ?></div>
            </div>
            <?php if (isset($_SESSION['uid'])) { ?>
                <div id="drawer_logout" class="mdui-list-item mdui-ripple">
                    <i class="mdui-list-item-icon mdui-icon material-icons">&#xe898;</i>
                    <div class="mdui-list-item-content">退出账号</div>
                </div>
            <?php } ?>
        </div>
        <?php if (isset($_SESSION['uid'])) { ?>
            <!--已登录状态-->
            <div class="mdui-divider"></div>
            <div>
                <div id="drawer_settings" class="mdui-list-item mdui-ripple">
                    <i class="mdui-list-item-icon mdui-icon material-icons">&#xe851;</i>
                    <div class="mdui-list-item-content">设置中心</div>
                </div>
                <?php if (isset($_SESSION['uid']) && $_SESSION['utype'] == '管理员') { ?>
                    <div id="drawer_management" class="mdui-list-item mdui-ripple">
                        <i class="mdui-list-item-icon mdui-icon material-icons">&#xe8f7;</i>
                        <div class="mdui-list-item-content">基础信息维护</div>
                    </div>
                <?php } ?>
                <div id="drawer_course" class="mdui-list-item mdui-ripple">
                    <i class="mdui-list-item-icon mdui-icon material-icons">&#xe54b;</i>
                    <div class="mdui-list-item-content">课程管理</div>
                </div>
                <div id="drawer_score" class="mdui-list-item mdui-ripple">
                    <i class="mdui-list-item-icon mdui-icon material-icons">&#xe0c9;</i>
                    <div class="mdui-list-item-content">成绩信息</div>
                </div>
                <div id="drawer_notice" class="mdui-list-item mdui-ripple">
                    <i class="mdui-list-item-icon mdui-icon material-icons">&#xe7f4;</i>
                    <div class="mdui-list-item-content">公告板</div>
                </div>
            </div>
            <div class="mdui-subheader"> 关于</div>
            <div>
                <div id="drawer_docs" class="mdui-list-item mdui-ripple">
                    <i class="mdui-list-item-icon mdui-icon material-icons">&#xe0e0;</i>
                    <div class="mdui-list-item-content">开发文档</div>
                </div>
            </div>
        <?php } else { ?>
            <!--未登录状态-->
            <div class="mdui-divider"></div>
            <div>
                <div id="drawer_docs" class="mdui-list-item mdui-ripple">
                    <i class="mdui-list-item-icon mdui-icon material-icons">&#xe0e0;</i>
                    <div class="mdui-list-item-content">开发文档</div>
                </div>
            </div>
            <div class="mdui-subheader"> 相关链接</div>
            <div>
                <div id="drawer_drxs" class="mdui-list-item mdui-ripple">
                    <i class="mdui-list-item-icon mdui-icon material-icons">&#xe31e;</i>
                    <div class="mdui-list-item-content">独人欣赏</div>
                </div>
                <div id="drawer_mdui" class="mdui-list-item mdui-ripple">
                    <i class="mdui-list-item-icon mdui-icon material-icons">&#xe250;</i>
                    <div class="mdui-list-item-content">MDUI</div>
                </div>
                <div id="drawer_w3school" class="mdui-list-item mdui-ripple">
                    <i class="mdui-list-item-icon mdui-icon material-icons">&#xe02f;</i>
                    <div class="mdui-list-item-content">W3School</div>
                </div>
            </div>
        <?php } ?>
    </div>
    <div class="copyright">
        <p>&COPY;&nbsp;2020&nbsp;-&nbsp;<?php echo date('Y'); ?>王宇松</p>
        <p>Web程序设计</p>
    </div>
</div>
<!--抽屉导航 end-->
